<template>
  <div class="SetupEntrance_main AddOrUpdate_main add_container">
    <div class="main_main">
      企业认证通过后，即可开启兑换
    </div>
    <div class="main_bottom">
      <!-- <el-button @click.stop="backDefault">恢复默认</el-button>
      <el-button type="cancel" @click.stop="cancel">取消</el-button> -->
      <el-button @click.stop="onSubmit">确认</el-button>
    </div>
  </div>
</template>

<script>
export default {
  name: 'SetupEntrance',
  props: {
    layerid: {},
    settingData: {}
  },
  data() {
    return {
      menuOptions: [],
      defaultExpandedNodes: []
    }
  },
  mounted() {
    this.menuOptions = this.$deepClone(this.all_routes)
    if (this.settingData.data) {
      const keys = []
      this.settingData.data.forEach(item => {
        keys.push(item.menuId)
      })
      this.$refs.menu.setCheckedKeys(keys)
      this.defaultExpandedNodes = keys
    }
  },
  methods: {
    onSubmit() {
      this.$layer.close(this.layerid)// 关闭弹框
    }
  }
}
</script>

  <style lang="less" scoped>
  /deep/ .el-tree-node{
    //叶子节点显示复选框，其他节点不显示复选框
    .is-leaf~.el-checkbox .el-checkbox__inner {
      display: flex;
    }

    .el-checkbox__input>.el-checkbox__inner {
      display: none;
    }
  }
  .main_main{
    margin-left: 20px;
  }
  </style>

